package cn.jiyun.service.impl;

import cn.jiyun.entity.XmAdvertisements;
import cn.jiyun.mapper.XmAdvertisementsMapper;
import cn.jiyun.service.IXmAdvertisementsService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-11-27
 */
@Service
public class XmAdvertisementsServiceImpl extends ServiceImpl<XmAdvertisementsMapper, XmAdvertisements> implements IXmAdvertisementsService {

    @Override
    public Page findPage(Integer pageNum, Integer pageSize, XmAdvertisements xmAdvertisements) {
        Page page = new Page(pageNum,pageSize);
        LambdaQueryWrapper<XmAdvertisements> qr = new LambdaQueryWrapper<>();
        return baseMapper.selectPage(page,qr);
    }
}
